package com.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
@ComponentScan(basePackages={"com.example","com.cxf.demo"})
public class DemoApplication {

	@RequestMapping("/")
    String home() {
        return "Hello World!";
    }
	
	@RequestMapping("/test")
    String test() {
        return "Hello World!!";
    }
	
	@RequestMapping("/find")
    String find() {
        return "find something!!";
    }
	
	public static void main(String[] args) {
		SpringApplication.run(DemoApplication.class, args);
	}
}
